﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App1.Assets.temas.peixonauta">






    <BitmapImage x:Key="ImagemBoxInicial" 
                 UriSource="../Assets/temas/peixonauta/paginas/1.png">
    </BitmapImage>

    <Style x:Key="CorFundoTituloPagina" TargetType="Border">
        <Setter Property="Background" Value="#3CB371" ></Setter>
        <Setter Property="CornerRadius" Value="60,40,40,60"></Setter>
    </Style>

    <Style x:Key="ImagemCabecalhoPagina" TargetType="Image">
        <Setter Property="Margin" Value="-80,0,0,0"></Setter>
        <Setter Property="Height" Value="110"></Setter>
    </Style>

    <BitmapImage x:Key="ImagemCabecalho" 
                 UriSource="../Assets/temas/peixonauta/logo.png">
    </BitmapImage>

    <Style x:Key="TextoCabecalhoPagina" TargetType="TextBlock" BasedOn="{StaticResource PageHeaderTextStyle}">
        <Setter Property="IsHitTestVisible" Value="False" ></Setter>
        <Setter Property="Padding" Value="0,50,100,0" ></Setter>
        <Setter Property="Margin" Value="10,0,0,0" ></Setter>
        <Setter Property="Height" Value="110" ></Setter>
    </Style>

    <ImageBrush x:Key="Fundo" ImageSource="../Assets/temas/peixonauta/fundo2.png" Stretch="UniformToFill" ></ImageBrush>



    <DataTemplate x:Key="TemplatePaginaLida">
        <Grid HorizontalAlignment="Left" Width="250" Height="250">
            <Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}">
                <Image Source="{Binding Image}" Stretch="UniformToFill" AutomationProperties.Name="{Binding Titulo}"/>
            </Border>
            <StackPanel VerticalAlignment="Bottom" Background="{StaticResource ListViewItemOverlayBackgroundThemeBrush}" Width="250" Height="250">
                <TextBlock Text="{Binding Titulo}" TextAlignment="Center"  FontSize="24" VerticalAlignment="Center" Height="200" Width="200" TextWrapping="Wrap"  Margin="25,25,15,25"/>

            </StackPanel>
        </Grid>
    </DataTemplate>


    <DataTemplate x:Key="TemplateUltimaPaginaLida">
        <Grid HorizontalAlignment="Left" Width="250" Height="250">
            <Border >
                <Image Source="{Binding Image}" Stretch="UniformToFill" AutomationProperties.Name="{Binding Titulo}"/>
            </Border>
            <StackPanel VerticalAlignment="Bottom" Background="{StaticResource ListViewItemOverlayBackgroundThemeBrush}" Width="250" Height="250">
                <TextBlock Text="{Binding Titulo}" Foreground="{StaticResource ListViewItemOverlayForegroundThemeBrush}" Style="{StaticResource TitleTextStyle}" TextAlignment="Center"  FontSize="24" Height="60" Width="200" Margin="25,25,15,25"/>
                <TextBlock Text="{Binding Subtitulo}" Foreground="{StaticResource ListViewItemOverlaySecondaryForegroundThemeBrush}" Style="{StaticResource CaptionTextStyle}" FontSize="22" TextWrapping="NoWrap" Width="200" TextAlignment="Center" TextTrimming="WordEllipsis" Margin="15,0,15,10"/>
            </StackPanel>
        </Grid>

    </DataTemplate>

    <DataTemplate x:Key="ItemTemplateCapitulosFull">
        <Grid  Background="Transparent" Margin="2,50,2,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="200"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="400">
                </RowDefinition>

            </Grid.RowDefinitions>
            <Image Source="{Binding Image}" Stretch="UniformToFill"/>

            <Border  Width="200" Height="250" Margin="0,250,0,0" Grid.Column="0" Grid.Row="0" 
                     Background="White" Opacity="0.5">

            </Border>

            <TextBlock Margin="10,280,10,0"
                        Text="{Binding Titulo}"
                       VerticalAlignment="Top" 
                       Foreground="Black" 
                       FontSize="24"
                       TextAlignment="Center"
                       TextWrapping="Wrap"/>


        </Grid>
    </DataTemplate>

    <DataTemplate x:Key="ItemTemplateCapitulosSnapped">
        <Grid  Background="Transparent" Margin="2,50,2,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="300"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="200">
                </RowDefinition>

            </Grid.RowDefinitions>
            <Image Source="{Binding Image}" Stretch="UniformToFill"/>

            <Border  Width="300" Height="100" Margin="0,100,0,0" Grid.Column="0" Grid.Row="0" 
                     Background="White" Opacity="0.5">

            </Border>

            <TextBlock Margin="10,120,20,10"
                        Text="{Binding Titulo}"
                       VerticalAlignment="Top" 
                       Foreground="Black" 
                       FontSize="24"
                       TextAlignment="Center"
                       Height="200"
                       TextWrapping="Wrap" TextTrimming="WordEllipsis" />


        </Grid>
    </DataTemplate>



    <DataTemplate x:Key="PaginaNaoLidaFull">

        <Grid Width="250" Height="250" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="250"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="250"/>
            </Grid.RowDefinitions>

            <Border Grid.Column="0" Grid.Row="0" Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}">
                <Image Source="{Binding Image}" Stretch="UniformToFill" />
            </Border>
            <StackPanel VerticalAlignment="Bottom" Background="{StaticResource ListViewItemOverlayBackgroundThemeBrush}">
                <TextBlock Text="{Binding Titulo}" TextAlignment="Center" Foreground="White" TextWrapping="Wrap" TextTrimming="WordEllipsis" 
                           FontSize="24" Width="250" Height="60" Margin="10"/>

            </StackPanel>
        </Grid>
    </DataTemplate>
    
    
</ResourceDictionary>
